<p-dataTable [value]="scheduleDatas" [responsive]="true" id="malfunctionTable">

    <p-column selectionMode="multiple" ></p-column>
    <p-column field="sid" header="故障编号" [sortable]="true">
        <ng-template let-data="rowData" pTemplate="operator">
            <span (click)="onOperate(data)">{{data.sid}}</span>
        </ng-template>
    </p-column>
    <p-column field="acceptor " header="受理人" [sortable]="true"></p-column>
    <p-column field="accept_time" header="受理时间" [sortable]="true"></p-column>
    <p-column field="submitter" header="报告人" [sortable]="true"></p-column>
    <p-column field="occurrence_time" header="发生时间" [sortable]="true"></p-column>
    <p-column field="bt_system" header="所属分类" [sortable]="true"></p-column>
    <p-column field="name" header="故障标题" [sortable]="true"></p-column>
    <p-column field="status" header="状态" [sortable]="true"></p-column>
    <p-column field="processor" header="当前处理人" [sortable]="true"></p-column>
    <p-column field="color" header="操作项" [style]="{'width':'17.2vw'}">
        <ng-template let-data="rowData" pTemplate="operator">
            <app-btn-up [data]="data"></app-btn-up>
            <app-btn-down [data]="data"></app-btn-down>
            <app-btn-distribute [data]="data"></app-btn-distribute>
            <app-btn-receive [data]="data" (dataEmitter)="reciveDataEmitter($event)"></app-btn-receive>
            <app-btn-reject [data]="data" (dataEmitter)="rejectDataEmitter($event)"></app-btn-reject>
            <app-btn-deal [data]="data" (dataEmitter)="rejectDataEmitter($event)" ></app-btn-deal>
            <app-btn-solve [data]="data" (dataEmitter)="rejectDataEmitter($event)"></app-btn-solve>
            <app-btn-off [data]="data" (dataEmitter)="rejectDataEmitter($event)"></app-btn-off>
            <app-btn-edit  [data]="data"></app-btn-edit>
            <app-btn-delete [data]="data" (dataEmitter)="deletDataEmitter($event)"></app-btn-delete>
            <app-btn-view [data]="data" ></app-btn-view>
        </ng-template>
    </p-column>
    <ng-template pTemplate="emptymessage">
        当前没有数据
    </ng-template>
</p-dataTable>
<p-paginator rows="10" totalRecords="{{total}}" [rowsPerPageOptions]="[10,20,30]" pageLinkSize="{{page_total}}"  (onPageChange)="paginate($event)"></p-paginator>
<p-growl [(value)]="msgs"></p-growl>
